<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:composite="http://xmlns.jcp.org/jsf/composite">

<composite:interface>
    <composite:attribute name="value"/>
    <composite:attribute name="required"/>
    <composite:editableValueHolder name="input"/>
</composite:interface>

<composite:implementation>
    <div id="#{cc.clientId}">
        <p:inputText id="input" value="#{cc.attrs.value}" required="#{cc.attrs.required}"/>
    </div>
</composite:implementation>

</html>